System for testing, verifying legitimacy of smart card in-situ and for storing data therein

ABSTRACT

A hand-held battery-operated device for interrogating and/or programming ISO7816 smart cards by means of an ISO7816 compliant card slot, in conjunction with a display, a keypad and barcode reader for data entry, a battery backup RAM for temporary storage of collected data, flash memory for storage of proprietary information provided by a smart card issuer, a RS232 port and RF link for communication with a host computer, in-system programming port for updating the flash program, all connected operatively to an internal microprocessor which perform clock or power glitching to access internal information of a smart card to determine whether the card has been tampered, compromised, and functionality.

BACKGROUND OF THE INVENTION

[0001] 1. Field of the Invention

[0002] The invention generally relates to a system for testing, and verifying legitimacy of smart card or the like and for storing data therein. In particular, the system includes a hand-held, battery-operated, free-standing device for in-situ interrogating and/or programming smart cards by means of a card slot.

[0003] 2. Description of the Related Art

[0004] Smart cards are expected to be a part of the information infrastructure of the future for everything from banking to telecommunications to retail. For example, worldwide, millions of smart cards are issues by the satellite television industry for conditional access and security. More than 210,000 contact-less smart cards called SmarTrip® have been issued to Metro® subway and commuter train riders in the Washington, D.C. and Northern Virginia area, each of which can store up to $200 value. The riders simply wave the cards, or the wallets/pockets containing the cards within 10 centimeters of the front side of a turnstile reader.

[0005] Smart cards are generally referred as a class of credit card-sized devices with varying capabilities, such as stored-value cards, contact-less cards, and integrated circuit cards (ICC). The circuitry in a smart card derives power from a smart card reader after the card is inserted into the reader. It includes pay-TV smart cards, prepayment meter tokens, remote locking devices for cars and mobile phone SIM cards. For example, Access Cards issued by Satellite TV distribution for providing certain programming to certain households has memory stored with data which determines what programs can be de-scrambled, and what programs cannot. The card is technically known as a Conditional Access Module (CAM). Data communication between a smart card and an application running on a computer is performed over a half-duplex serial interface managed by the smart card reader and its associated device driver. Smart card readers are either connected to a computer or communicating with the computer wirelessly.

[0006] The physical structure of a smart card is specified by the International Standards Organization (ISO) 7810, 7816/1, 7816/2 and 7812/3 which includes a printed circuit and an integrated circuit chip embedded a plastic card (dimensions of 85.60 mm×53.98 mm×0.80 mm). The capability of the smart card is decided by the integrated circuit chip which consists of a microprocessor, read only memory (ROM), non-static random access memory (RAM) and electrically erasable programmable read only memory (EEPROM). EEPROM stores the secret of the cryptographic algorithm, the keys stored, and the access control inside the smart card such that it becomes the targets of attackers. A physical interface allows data exchange between the integrated circuit chip and the card acceptor device (CAD).

[0007] All the data exchanges are under the control of the central processing unit in the integrated circuit chip.

[0008] The confidentiality and integrity of all information stored on a smart card shall be ensured to protect the privacy of the cardholders and the business interests of the card issuers against fraud perpetrated by malicious cardholders, card thief, and commercial pirates. So far, commercial pirates have cost digital TV industry hundreds of millions of dollars. Smart cards in general are vulnerable to a variety of attacks, such as attacks via a terminal against a cardholder or attacks by a cardholder against a card issuer.

[0009] To combat attacks by a terminal against a cardholder, systems use software-only solutions, such as interactive logon, client authentication, and remote logon to verify smart cards. This approach requires signal transition to a remote computer, which is subject to interception.

[0010] The attacks by a cardholder, including a commercial pirate, against a card issuer may be classified into two categories: invasive attacks (physical attacks) and non-invasive attacks. Physical attacks, such as microprobing, access the chip surface directly to observe, manipulate, and interfere with the IC. For example, the circuit chip is tempered by removing its circuitry from the plastic card by a knife to cut away the plastic behind the chip module until the epoxy resin becomes visible, dissolving the resin by a few drops of fuming nitric acid, washing the acid and the away by acetone until the silicon surface is fully exposed. To read out EEPROM contents, microprobe techniques or circuitry reverse engineer can be applied. The security lock bit is erased by focusing UV light on the EEPROM, probing the operation of the circuit with microprobing needles, or using laser cutter microscopes to explore the chip. The techniques described above have been successfully applied by amateur pay-TV hackers, students and others with limited resources. Some of the techniques available in professionally equipped semiconductor laboratories.

[0011] Non-invasive attacks are custom-prepared for a specific processor type and software version to reproduce the information within seconds on another card of the same type. The attacked card is not physically harmed and the equipment used in the attack is usually disguised as a normal smart card reader. There are a lot of non-invasive attacks on particular designs, such as raising the supply voltage above its design limit, cutting the supply voltage below its design limit, exploiting design weaknesses in the hardware (including the manufacturer supplied ROM code), exploiting misfeatures in the EEPROM code, or their combinations. These non-invasive attacks are categorized in three groups, as disclosed in an article by Siu-cheung Charles Chan: 1. Logical attacks on the communication interface of the processor by exploiting security vulnerabilities found in the protocols, cryptographic algorithms, or their implementation. 2. Monitoring information with high time resolution to figure out the analog characteristics, such as power, current, of all supply and interface connections and any other electromagnetic radiation produced by the processor during normal operation. 3. Glitching by generating malfunction or confusion in the processor to provide additional access.

[0012] Non-invasive attacks are particularly dangerous in some applications because the owner of the compromised card might not notice that the cryptographic keys have been stolen, therefore it is unlikely that the compromised keys will be revoked before any abuse. On the other hand, invasive techniques require very little initial knowledge and usually work with a similar set of techniques on a wide range of products. Attacks therefore often start with invasive reverse engineering, the results of which then help to develop cheaper and faster non-invasive attacks.

[0013] In addition to the attacks on satellite TV, there have been a number of attacks on banking systems, telephone systems, and prepayment electricity meter systems. Most of the attacks documented there resulted from similarly opportunistic exploitation of design and operational errors, and some of the target systems were based on smart cards. As a consultant to some high-tech companies, the inventor has witnessed numerous successful attacks based on smart cards by commercial pirates on pay-TV systems via intentional clock and power supply glitches, which can often cause the execution of incorrect instructions by the smart card and offer access to data.

[0014] A microprocessor is basically a set of a few thousand flip-flops (registers, latches, etc.) that define its current state, and additional combinatorial logic that calculates from the current state the next state during every clock cycle. Some analog effects in such a system can be glitched. Power and clock transients are used in some processors to affect the decoding and execution of individual instructions. Glitching is basically momentarily dropping the electrical voltage being applied to the card at some point to bypass certain security areas on the card designed for keeping the EEPROM or ROM code secure. In a glitch attack, a malfunction is deliberately generated to cause the wrong state such that a single critical machine instruction is replaced with an arbitrary instruction. A glitch increases the program counter as usual but transforms either the conditional jump or the loop variable decrement into something else. Conditional jumps create windows of vulnerability in the processing stages of many security applications that often allows the pirates to bypass sophisticated cryptographic barriers by simply preventing the authentication execution of the code. Glitches can also aim to corrupt data values as they are transferred between registers and memory.

[0015] A clock glitch or a power glitch will affect only certain transistors in the chip.

[0016] Since the pirates do not know in advance which glitch will cause wrong instructions in a specific chip, they have to find the information by a systematic search (trial-and-error) with a computer and other equipment. With the timing information, they then can reprogram legitimate digital satellite TV access cards with an ISO-7816 card programmer to allow the cards to “test” all channels available. There are a several websites marketing the tempered cards or equipment to temper legitimate access cards.

[0017] A card issuer in the digital TV industry can randomly launch an electronic countermeasure (ECM), i.e., an electronic signal sent down from the satellite to shut down or damage access cards such that the tempered cards can no longer authorize all channels. ECM's are type or brand specific, i.e., targeted against a particular type or brand of card. ECM's are usually based from a software analysis of the tempered cards and then the weaknesses are exploited in an ECM.

[0018] During a field investigation, fraudulent and legitimate smart cards are found and confiscated. These cards require interrogation to determine their legitimacy. In some cases, only limited access to evidence is allowed. A tool for easy and fast identification, verification of legitimacy, collection and storage of data is required.

[0019] Most hand-held smart card readers or authentication devices have limited memory and processing resources such that they have to be connected or wirelessly communicating with a computer or other external equipment to operate. For example, it may require a device to provide and supply operation or user data information. These limitations may degrade the security of the device in some circumstances as the external elements are unavailable, un-trusted or precarious. U.S. Pat. No. 5,682,027 shows a system and method for performing transactions and a portable intelligent device therefore. This patent also shows a portable ISO 7816 compliant device that has backup RAM and a display (FIG. 1; abstract). In addition, the system provides different access restriction levels. U.S. Pat. No. 5,748,737 shows a multimedia electronic wallet and generic card. This patent also shows a handheld, ISO 7816 compliant device (abstract).

[0020] Currently, there is a demand for a hand-held, battery-operated, free-standing smart card authentication device for in-situ interrogating and/or programming smart cards by means of a card slot.

SUMMARY OF THE INVENTION

[0021] It is a purpose of this invention to be hand-held, free-standing smart card authentication device for in-situ interrogating.

[0022] It is another purpose of this invention to provide a system for interrogating ISO 7816 smart cards thereby determining their legitimacy, identification, and functionality.

[0023] It is still another purpose of this invention to answer to persistent requests of cared issuers for a hand-held, free-standing smart card authentication device for in-situ interrogating.

DESCRIPTION OF THE DRAWINGS

[0024] The foregoing and additional features and characteristics of the present invention will become more apparent from the following detailed description considered with reference to the accompanying drawings in which like reference numerals designate like elements and wherein:

[0025]FIG. 1 shows a hand-held, in-situ, free-standing smart card authentication device according to the invention;

[0026]FIG. 2 is a block diagram showing one embodiment of the hardware structure of the authentication device shown in FIG. 1; and

[0027]FIG. 3 is an operation flow chart of the authentication device shown in FIG. 1.

DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0028] With reference to the figures, like reference characters will be used to indicate like elements throughout the several embodiments and views thereof. FIG. 1. The CAMID™ 100 as shown in FIG. 1 is a stand-alone, battery-operated, hand-held device for interrogating any ISO 7816 compliant Conditional Access Module (CAM) 200. The CAMID™ 100 allows investigators to immediately sort CAMs by category, i.e., valid, defective, or tampered. During the interrogation, data is collected and sorted without additional hardware (stand-alone). The CAMID™ 100 comprises a LCD screen 10, a key pad 20, a CAM slot 30, an antenna 64, a housing case 50, and a microprocessor 61. FIG. 2 shows the CAMID™ 100 and the component blocks of the microprocessor 61, including a battery backed-up RAM 62, a flash memory 63, a RS-232 port 40, an ISO card port 30, Bar code interface 67, a current processing means (not shown), etc. The CAMID™ 100 is battery-powered, and it instantly displays CAM information as directed by an investigator via the key pad 20.

[0029] The key of the invention is the information for clock or power glitching provided by card issuers, such as which glitch will cause wrong instructions in a specific CAM. With the information, the CAMID™ 100 does not need to perform a systematic search (trial-and-error) with a computer and other equipment as the pirates to find out the information in order to create a glitch to bypass authentication. Accordingly, the CAMID™ 100 can perform its interrogation function in a hand-held size and free-standing manner. As mentioned, the circuit board 60 includes a current processing means 67, which determines if the card is good or defective based upon the current drawn by the card. For example, assuming a card draws about 5 milli amps normally, a slightly higher current on this card indicates a defect or tempered with by a pirate. The current processing means can be implemented via an A/D converter encompassed within the microprocessor. Alternatively, a power processing means is used to control the on and off of Vcc power which can be implemented via an integrated device like a Power transistor that can withstand characteristic demands, a discreet logic, or any other means known to one skilled in the art. Characteristic demands. The characteristic demands include speed and current demand.

[0030] The operation of the CAMID™ 100 is based upon a custom-developed software stored therein. The software displays user-friendly menus to guide the investigator to read, sort, and identify tampered CAMs in a manner that it allows flexible examination of CAMs without compromising the integrity of collected evidence. The flash memory 63 internal to the processor allows for in-field software upgrades. The CAMID™ 100 time-stamps and sequences all its internal records such that data may be easily sorted and viewed on the LCD screen 10. The in-situ collected data may also be saved in the RAM 62 to be downloaded to a host using the RS-232 port 40 or the RF data link 66. The in-system programming port 66 is used for updating the program. The CAMID™ can store data of over three thousand eight hundred CAMs, or seventy eight complete images, or any combination until the RAM 62 is 100% full. Once the RAM 62 is full, or interrogation is completed, the data may be downloaded to a host computer (e.g. a laptop computer) so as to release the RAM 62 for the next series of examinations. An integral lithium battery provides 10 years data retention of RAM memory if a host is not available. The host computer uses a custom software, such as CLINK.exe, to parse the downloaded data.

[0031] RAM is preferred for data collection than ROM, PROM, FLASH, EPROM, or EEPROM because of it's unlimited read/write ability and speed.

[0032] During a field investigation, confiscated CAMs are interrogated using several CAMID™s. Upon request as programmed, the microprocessor 61 interrogates the smart card for appropriate responses. The results is presented on the display 10, such as: 1) The CAM service type; (2) The condition (electrically good, bad, looped); and or (3) Whether a CAM is legitimate, intact or tempered.

[0033] Based on the answers received by the system, the pertinent data will be saved in battery backed-up RAM for later download or review. A keyboard is provided for entry of data, turning power on/off, and maneuvering through and selecting various menu options. An RS-232 40 or RF link port 66 is provided for connecting to a host computer used for data retrieval and system parameters upload. In-system programming (ISP) port is provided for loading internal FLASH and EEPROM of said microprocessor.

[0034] According to the flow chart in FIG. 3, the user first turns on the CAMID™ 100 power (Step 1100) by pressing the “Pwr” button on the keypad 20 until hearing the power-up chime. Once power is on, the CAMID™ 100 displays “Property of XXX corp. /Enter code” prompting the user to enter a pass code (step 1200). The user enters a correct pass code (step 1200) followed by pressing the “Ent” button. The CAMID™ 100 displays board, firmware versions and date/time. The CAMID™ 100 displays the main menu after the user presses any button (except “Pwr”) to continue.

[0035] MAIN MENU:

[0036] 1. CAM Functions

[0037] 2. Connect to PC

[0038] 3. Memory menu

[0039] 4. Setup menu

[0040] If the user selects Option #1 “CAMfunction.” from the main menu (step 1300), the CAMID™ 100 displays “Insert CAM” prompting the user to insert a smart card in to the slot 30 (step 1410). The CAM shall be placed with ISO connector facing up, which allows to view the actual printed ID without removing the CAM

[0041] There are two ways to make a menu selection. The user can directly enter the number of selection using the keypad (#1 for this purpose) or use the “arrow” buttons to navigate the cursor (flashing block) to the required selection, then press the “Ent” button to finalize the selection. At any time, the “Esc” button can take the user back to the previous menu and/or cancel the command.

[0042] CAM function MENU:

[0043] 1. Read from CAM

[0044] 2. Write to CAM

[0045] 3. Show Mem Usage

[0046] If the user enters #1 to select, the microprocessor 61 initializes the card and requests pertinent data to be sent, such as answer to reset (ATR). Further, the system checks for electrical health by means of current measurement (step 1420). If the inserted smart card current is within the programmed parameters, the microprocessor 61 expects an answer to reset (ATR) to be returned by the inserted smart card. This answer is compared to the systems internal stored database. Judging by the returned answer, the system determines the identity of the inserted smart card. The system further checks pertinent data to determine correctness of answers to queries and other programmed parameters provided by the system internal database. The user is prompted audibly to view answers received from the inserted smart card. Information is displayed on the system's display. The user is prompted to enter the identification printed of the inserted smart card either by the system keypad 20 or barcode scanner 67 (step 1422). The system compares the printed identification on the inserted smart card with the displayed data (step 1424).

[0047] If the identification displayed is the same as the data retrieved from the smart card, and the other tests pass, the system displays “good” and saves the ID number in the RAM 62 (step 1426). However, if the identification proves to be different, the system will display “tempered”(step 1425). The pertinent data is now saved in the system internal battery-backed-up-memory. Once the data has been saved the CAMID™ displays “Safe-remove CAM.” (step 1428). The CAM may be removed. Additional CAMS may be interrogated until all CAMS are read. After the interrogation has completed, the user may upload the collected data to a host PC using the RS232 or RF link ports.

[0048] The user may program or update the CAM by selecting “Write to CAM” from the menu (step 1430). Information in memory will be written to the CAM. As additional smart cards are interrogated data is saved, memory usage may be viewed on the system display (Step 1440).

[0049] If the memory is filled, the system notifies the user audibly and displays a message in the system display (step 1460). Once the memory is filled, the data must be uploaded to a host computer using the systems internal RS-232 port 40 or the RF link 66 by selecting “Connect to PC” and pressing any button on the key pad 20 (step 1500). After uploading the data, the user may select to erase the RAM memory to release for use again (step 1510). Alternative, the user may at any time select to upload the stored data to a host computer.

[0050] The display 10 can be replaced by a vacuum florescent display. Since the CAMID™ 100 is software-driven device, the parameters for interrogation, a ISO 7816 compliant ATR (answer to reset) comparison table, commands, and appropriate responses, can all be added and altered, as needed to cope with new techniques developed by pirates. The application of CAMID™s is not limited to the satellite Industry. Virtually, any smart cards adopting the ISO7816 standard can be interrogated according to the invention. The flexibility of the CAMID™ allows identifying the ATR from the ISO card 65, subsequently identifying the card. The CAMID™'s internal firmware can be programmed for additional services and new functions. If new services are needed or changes to existing services are required, proprietary CAM information may be added to the flash memory 63.

[0051] The principles, preferred embodiments and modes of operation of the present invention have been described in the foregoing specification. However, the invention which is intended to be protected is not limited to the particular embodiments disclosed. The embodiments described herein are illustrative rather than restrictive. Variations and changes may be made by others, and equivalents employed, without departing from the spirit of the present invention. Accordingly, it is expressly intended that all such variations, changes and equivalents which fall within the spirit and scope of the present invention as defined in the claims, be embraced thereby. 

1. A smart card authenticating device, comprising: a hand-held sized housing; a slot for inserting a to-be-interrogated smart card: a storage medium stored with clock or power glitching timing information provided by a smart card issuer; and means for glitching clock or power in the smart card based upon said timing information to bypass authentication so as to interrogate whether the smart card is issued by the issuer independent of any collaborating or communicating with any external computer system or equipment, wherein said device operates in a hand-held, in-situ, and free-standing manner.
 2. The device according to claim 1, further comprising a display for displaying menus or instructions.
 3. The device according to claim 1, further comprising a key pad.
 4. The device according to claim 1, further comprising a smart card receiving slot.
 5. The device according to claim 1, further comprising an antenna for wireless communication between the device with an external host PC.
 6. The device according to claim 5, wherein in the external device is a in-situ computer.
 7. The device according to claim 1, wherein the storage medium is one of a RAM, ROM, PROM, FLASH, EPROM, and EEPROM.
 8. The device according to claim 1, further comprising a housing case. 